using Microsoft.SPOT;
using System.Threading;
using Microsoft.SPOT.Presentation;
namespace HouseControl
{
    class GUI
    {
        public static void DrawImage(Bitmap img)   //take the image that we want to draw
        {
            Bitmap screen = new Bitmap(SystemMetrics.ScreenWidth, SystemMetrics.ScreenHeight); //define the area where we need to print

            //draw the image in the Buffer
            screen.DrawImage(0, 0, img, 0, 0, SystemMetrics.ScreenWidth, SystemMetrics.ScreenHeight);
            // Printing on the screen
            screen.Flush();
            Thread.Sleep(1000);
            screen.Clear();
        }


    }
}
